package games.gong.durid.config;

import com.eternal.peaceworld.service.AesEncryptorService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName EncryptorConfig
 * @PackageName games.gong.durid.config
 * @projectName springboot
 * @Description 加密器配置类
 * @Author games
 * @Date 2025/8/18 下午4:50
 * @Version 1.0
 */
@Configuration
public class EncryptorConfig {
    
    @Value("${encryptor.key:abcdefghijklmnop}")
    private String encryptorKey;
    
    @Bean
    public AesEncryptorService aesEncryptorService() {
        return new AesEncryptorService(encryptorKey);
    }
}